package com.jcsz.gulimall.product.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.jcsz.gulimall.product.entity.*;
import lombok.Data;

import java.util.List;

/**
 * @className: SkuItemVo
 * @author: 一把Po吉他
 * @date: 2022/11/6 20:22
 * @version: 1.0
 **/
@Data
public class SkuItemVo2 {

    //sku基本信息
    private SkuInfoEntity skuInfo;
    //sku图片信息
    private List<SkuImagesEntity> images;
    //sku销售属性
    private List<SkuItemSaleAttrVo> saleAttr;
    //spu描述
    private SpuInfoDescEntity spuInfoDesc;
    //spu规格参数
    private List<SpuItemAttrGroupVo> groupAttrs;

    @Data
    public static class SkuItemSaleAttrVo {
        private Long attrId;
        private String attrName;
        private List<String> attrValues;
    }
    @Data
    public static class SpuItemAttrGroupVo {
        private String groupName;
        private List<SpuBaseAttrVo> attrs;
    }
    @Data
    public static class SpuBaseAttrVo {
        private String attrName;
        private String attrValues;
    }

}
